home *** CD-ROM | disk | FTP | other *** search
/ Meeting Pearls 1 / Meeting Pearls Vol 1 (1994).iso / installed_progs / text / faqs / sgi.faq.apps < prev    next >
Encoding:
Internet Message Format  |  1994-05-07  |  33.5 KB

  1. Subject: SGI apps Frequently Asked Questions (FAQ)
  2. Newsgroups: comp.sys.sgi.misc,comp.answers,news.answers
  3. From: sgi-faq@viz.tamu.edu (The SGI FAQ group)
  4. Date: 6 May 1994 06:00:14 GMT
  5.  
  6. Archive-name: sgi/faq/apps
  7. Last-modified: Thu May  5  9:25:11 CDT 1994
  8.  
  9.     SGI apps Frequently Asked Questions (FAQ)
  10.  
  11. This is one of the Silicon Graphics FAQ series, which consists of:
  12.  
  13.     SGI admin FAQ - IRIX system administration
  14.     SGI apps FAQ - Applications & compilers
  15.     SGI graphics FAQ - Graphics and user environment customization
  16.     SGI hardware FAQ - Hardware
  17.     SGI inventor FAQ - IRIS Inventor
  18.     SGI misc FAQ - Introduction & miscellaneous information
  19.     SGI performer FAQ - IRIS Performer
  20.     SGI pointer FAQ - Pointer to the other FAQs
  21.  
  22. Read the misc FAQ for information about the FAQs themselves.  Each FAQ
  23. is posted to comp.sys.sgi.misc and to the news.answers and comp.answers
  24. newsgroups (whose purpose is to store FAQs) twice per month.  If you
  25. can't find one of the FAQs with your news program, you can get it by
  26. anonymous FTP from one of these sites:
  27.  
  28.     rtfm.mit.edu:/pub/usenet/comp.sys.sgi.misc/
  29.     rtfm.mit.edu:/pub/usenet/news.answers/sgi/faq/
  30.     rtfm.mit.edu:/pub/usenet/comp.answers/sgi/faq/
  31.     viz.tamu.edu:/pub/sgi/faq/
  32.  
  33. Note that rtfm.mit.edu is home to many other FAQs and informational
  34. documents, and is a good place to look if you can't find an answer
  35. here. If you can't use FTP, send mail to mail-server@rtfm.mit.edu with
  36. the command 'send usenet/news.answers/ftp-list/faq' on a line by itself
  37. in the text, and it will send you a document describing how to FTP by
  38. mail. You can also read a hypertext version of the FAQs at
  39.  
  40.     http://www.cis.ohio-state.edu/hypertext/faq/usenet/sgi/top.html
  41.  
  42. The SGI FAQs are freely distributable and we encourage wide circulation.
  43. The contents are accurate as far as we know, but the usual disclaimers
  44. apply. Please send additions and changes to sgi-faq@viz.tamu.edu.
  45.  
  46. Topics covered in this FAQ:
  47. ---------------------------
  48.    -1- Where can I find software for SGIs?
  49.    -2- Where can I find software already compiled for SGIs?
  50.    -3- What about Explorer?
  51.    -4- WHAT TO USE?
  52.    -5- What's a good graphical text editor for SGIs?
  53.    -6- What's a good graphical mail program for SGIs?
  54.    -7- How can I convert ASCII to PostScript?
  55.    -8- How can I preview PostScript?
  56.    -9- How can I edit PostScript files?
  57.   -10- How can I format unformatted manpages?
  58.   -11- IRIX's version of top(1) doesn't let me renice or kill processes
  59.        interactively. What to do?
  60.   -12- BUGS AND PROBLEMS
  61.   -13- Why isn't Iris Insight working properly?
  62. ! -14- Why don't the arrow keys work in vi?
  63.   -15- How can I tell application X about my screen size?
  64.   -16- Why does ksh lock up if one's home directory is NFS-mounted?
  65.   -17- Why can't I 'talk' to Suns?
  66. + -18- How can I change what the keys on my keyboard do?
  67.   -19- PORTING
  68.   -20- Why can't I compile application X?
  69.   -21- Why doesn't application X understand NIS (Yellow Pages)?
  70.   -22- Where's 'ranlib'?
  71.   -23- How can I make the 'install' program work like BSD 'install'?
  72.   -24- Why does GNU Emacs not compile, or compile but not run?
  73.   -25- What do I need to do to build gcc/g++?
  74.   -26- COMPILERS AND PROGRAMMING
  75.   -27- What are the correct versions of the Irix Development Option
  76.        (IDO) and Fortran for current versions of IRIX?
  77.   -28- Where's edge in IRIX 5.x? What can I use instead?
  78.   -29- Can I use dynamic shared objects in IRIX?
  79. ! -30- How can I tell which shared objects my executable uses?
  80.   -31- How can I generate IRIX 4.0.x-compatible executables under IRIX
  81.        5.x?
  82.   -32- How can I convert IRIX 4.0.x executables to IRIX 5.x?
  83.   -33- How can I make IRIX malloc return null on failure?
  84.   -34- Where's CHILD_MAX?
  85.   -35- What prototypes are missing in IRIX 4.0.x and 5.x?
  86.   -36- Why are some static libraries missing in IRIX 5.x?
  87.   -37- Where are the audio, CD and DAT libraries in IRIX 5.x?
  88.  
  89. ----------------------------------------------------------------------
  90.  
  91. Subject:    -1- Where can I find software for SGIs?
  92. Date: 03 Apr 94 00:00:01 EST
  93.  
  94. Silicon Graphics can tell you about their own and third-party
  95. commercial software.  Call SGI Direct for more information; see
  96. the misc FAQ for phone numbers.
  97.  
  98. The best general reference for finding sources on the Internet is
  99. Jonathan Kamens' "Finding Sources" document. It can be FTPed from
  100. rtfm.mit.edu:/pub/usenet/news.answers/finding-sources. Read it
  101. carefully before you post a question about finding software ...
  102. because half of your answers will be "look in Archie" anyway, and
  103. "Finding Sources" tells you how to do that.
  104.  
  105. Useful general archive sites include ftp.x.org:/contrib/ for X software
  106. (and X itself), prep.ai.mit.edu:/pub/gnu/ for GNU software, and
  107. ftp.uu.net:/ and wuarchive.wustl.edu:/ for nearly anything, including
  108. archives of many Usenet sources newsgroups and mirrors of the
  109. aforementioned GNU and X archives.
  110.  
  111. The best SGI-specific reference is Bill Henderson's
  112. <billh@hampton.sgi.com> SGI anonymous FTP list. (See "What are some
  113. related network documents?" in the misc FAQ.) Good places to look, if
  114. you just feel like looking, are ftp.sgi.com:/ and sgigate.sgi.com:/,
  115. where are kept any number of freebies from the folks at SGI, and
  116. swedishchef.lerc.nasa.gov:/, a site particularly well-stocked with
  117. SGI-related materials.
  118.  
  119. Finally, see the next question for places to find precompiled software
  120. and questions (in this and the other SGI FAQs) which discuss
  121. particular packages for pointers to those packages.
  122.  
  123. ------------------------------
  124.  
  125. Subject:    -2- Where can I find software already compiled for SGIs?
  126. Date: 03 Apr 94 00:00:01 EST
  127.  
  128. A very large stash of SGI-compiled software is at
  129. ftp.uni-stuttgart.de:/sw; look in the sgi_40 directory for IRIX 4.0.x
  130. versions and the sgi_51 directory for IRIX 5.x versions.
  131.  
  132. David Hinds <dhinds@allegro.stanford.edu> keeps a stock of GNU
  133. software compiled for IRIX 4.0.x at cb-iris.stanford.edu:/pub/gnu/.
  134. Presently it includes recent versions of emacs, gcc, gnuplot, groff,
  135. gzip and perl.
  136.  
  137. Scott Henry <scotth@sgi.com> provides recent versions of GNU Emacs and
  138. gzip compiled for IRIX 4.0.x and (pay attention here) IRIX 5.x, in
  139. 'inst' form, in sgigate.sgi.com:/net-services/gnu-emacs.
  140.  
  141. If none of the above helps, check Bill Henderson's list.  Keep in mind
  142. that many of these binaries won't be the latest version, and it's worth
  143. checking the latest version to see if IRIX support has improved.  SGI's
  144. presence is increasing rapidly and the trend is definitely toward
  145. better IRIX support.
  146.  
  147. ------------------------------
  148.  
  149. Subject:    -3- What about Explorer?
  150. Date: 24 Feb 94 00:00:01 EST
  151.  
  152. The IRIS Explorer data visualization system has its own newsgroup,
  153. comp.graphics.explorer. There is an FTP site at
  154. ftp.epcc.ac.uk:/pub/explorer/ (with a North American mirror at
  155. swedishchef.lerc.nasa.gov:/explorer/), a WWW page at
  156. http://www.nag.co.uk:70/1h/Welcome_IEC and an FAQ which you can find
  157. at any of those sites.
  158.  
  159. ------------------------------
  160.  
  161. Subject:    -4- WHAT TO USE?
  162. Date: 10 Dec 93 00:00:01 EST
  163.  
  164. The next few questions discuss software for various applications.
  165.  
  166. ------------------------------
  167.  
  168. Subject:    -5- What's a good graphical text editor for SGIs?
  169. Date: 11 Mar 94 00:00:01 EST
  170.  
  171. The most popular graphic text editors on SGIs include:
  172.  
  173. zip (by Tom Davis of SGI) is something like jot but is orders of
  174. magnitude faster and laden with nifty features. It doesn't run well
  175. remotely or at all on X-terminals, text terminals or non-SGI machines,
  176. but if most of your editing will be at an SGI console, read no
  177. further!  You can FTP it from ftp.sgi.com:/graphics/zip/. If you're
  178. using IRIX 5.x, 'zip' has replaced 'jot' and you probably didn't even
  179. need to read this question.
  180.  
  181. nedit is a straightforward graphical editor with programmers' features.
  182. It needs X-windows but not GL. Get it from fnpspb.fnal.gov:/pub/nedit/.
  183. Patches to make it work under IRIX 5.x are at
  184. viz.tamu.edu:/pub/sgi/software/nedit/nedit-on-irix-5.x.patch.
  185.  
  186. GNU Emacs, a perennial favorite, isn't just an editor; it's a way of
  187. life.  It has a X-windows mode and works on X-windows terminals as well
  188. as SGI consoles and text terminals. Its X-windows support, once rather
  189. lackluster, has improved in the recently released version 19. It may be
  190. FTPed from any GNU archive, e.g. prep.ai.mit.edu:/pub/gnu/.
  191.  
  192. Epoch is a derivative of GNU Emacs 18 with better X-windows support. It
  193. may be found at cs.uiuc.edu:/pub/epoch-files/epoch/.
  194.  
  195. Lucid Emacs is a derivative of an early version of GNU Emacs 19. It may
  196. be found at lucid.com:/pub/lemacs/. It requires graphics.
  197.  
  198. Finally, the comp.windows.x FAQ (at
  199. rtfm.mit.edu:/pub/usenet/comp.windows.x/) lists many more editors which
  200. run under X-windows, both free and commercial.
  201.  
  202. ------------------------------
  203.  
  204. Subject:    -6- What's a good graphical mail program for SGIs?
  205. Date: 03 Apr 94 00:00:01 EST
  206.  
  207. SGI ships 'xmh' but not 'mh' (which 'xmh' needs), and it looks nasty
  208. anyway. Here are some more popular choices:
  209.  
  210. The free programs Elm and Pine are not graphical, but they are
  211. screen-oriented (they use text-based menus), easy to use, powerful and
  212. can easily be run in a separate window. They can be configured to use
  213. 'metamail' for MIME support. (MIME, described in RFC1521, is a
  214. standard for enclosing multimedia material in your mail.) Elm can be
  215. FTPed from dsinc.dsi.com:/elm/, Pine from ftp.cac.washington.edu:/pine/
  216. and 'metamail' from thumper.bellcore.com:/pub/nsb/. Elm has an FAQ (at
  217. rtfm.mit.edu:/pub/usenet/comp.mail.elm). A package which makes Elm
  218. work nicely with IRIX 4.0.5x's WorkSpace is at
  219. proton.chem.yale.edu:/pub/elm-ws-support.shar. Note that Elm's
  220. autoreply/arepdaemon subsystem has a bad security hole, so don't
  221. install those binaries. The rest of Elm is fine.
  222.  
  223. An IRIX-friendly version of 'xmailtool' is in
  224. crocus.medicine.rochester.edu:/pub/apps/.
  225.  
  226. Z-Mail is a commercial product written by Z-Code and redistributed by
  227. SGI. IRIX 5.x includes MediaMail, a subset of Z-Mail. Both are
  228. MIME-compatible and have a text-only mode.  The PostScript file
  229. viz.tamu.edu:/pub/sgi/software/mail/zmail-vs-mediamail.ps describes
  230. the differences between Z-Mail and MediaMail.  Z-Mail/MediaMail
  231. includes 'metamail', so if you use both Z-Mail/MediaMail and Elm or
  232. Pine or another free mail program, you can save yourself some trouble
  233. by configuring the latter to use the former's 'metamail'.
  234.  
  235. Finally, Chris Lewis' "Unix Email Software - a Survey" lists many mail
  236. programs, some of which are graphical. FTP it from
  237. rtfm.mit.edu:/pub/usenet/news.answers/mail/setup/unix.
  238.  
  239. ------------------------------
  240.  
  241. Subject:    -7- How can I convert ASCII to PostScript?
  242. Date: 06 Jan 94 00:00:01 EST
  243.  
  244. - IRIX 4.0.x includes 'lptops', which, because it's called indirectly
  245.   from 'lp', isn't as well known as it ought to be. Read the 'lptops'
  246.   and 'gpsinterface' manpages.
  247.  
  248. - Adobe Transcript, which includes 'enscript' (something like 'lptops')
  249.   and 'psroff' (nroff/troff-to-PostScript) is available at extra cost
  250.   from SGI.  Most people manage without it.
  251.  
  252. - SGI's own Impressario does PostScript and a lot of other things. It
  253.   too costs extra.
  254.  
  255. - Popular free converters include 'a2ps' (at
  256.   imag.fr:/archive/postscript/), 'lwf' (in volume 15 of
  257.   comp.sources.unix, e.g.
  258.   ftp.uu.net:/usenet/comp.sources.unix/volume15/lwf/) and 'psf' (in
  259.   volume 35 of comp.sources.misc, e.g.
  260.   ftp.uu.net:/usenet/comp.sources.misc/volume35/psf3/).  The
  261.   comp.lang.postscript FAQ (at
  262.   rtfm.mit.edu:/pub/usenet/comp.lang.postscript/) has a much longer
  263.   list of such programs, unfortunately no longer including reviews or
  264.   FTP sites.
  265.  
  266. - One good way to print manpages is with the '-m' option to 'a2ps'.
  267.  
  268. ------------------------------
  269.  
  270. Subject:    -8- How can I preview PostScript?
  271. Date: 20 Mar 94 00:00:01 EST
  272.  
  273. Display Postscript (DPS), which includes the 'xpsview' PostScript
  274. previewer, is an extra-cost option from SGI. Happily, Robert Keller of
  275. SGI <rck@fangio.asd.sgi.com> has made available GNU's GhostScript
  276. previewer, compiled *and* in SGI 'inst' installable form. FTP it from
  277. ftp.sgi.com:/sgi/ghost/.
  278.  
  279. Dale Atems <atems@physics.wayne.edu> points out:
  280. Many people try ghostscript and give it up because of the fonts.  There
  281. is something about ghostscript that's not as widely known as it should
  282. be and deserves emphasis: if you have SGI's Display Postscript, you can
  283. forget about most of the ugly bitmap fonts that come with ghostscript.
  284. Edit your Fontmap file to point ghostscript to the DPS outline fonts
  285. (in /usr/lib/DPS/outline/base) and it will use them instead. This will
  286. improve both screen display and, if you're not using a Postscript
  287. printer with those fonts already built in, printing quality.
  288.  
  289. ------------------------------
  290.  
  291. Subject:    -9- How can I edit PostScript files?
  292. Date: 07 May 93 00:00:01 EST
  293.  
  294. Ivan Bach <ib@sgi.com> collected some testimonials from a number of
  295. SGIers:
  296.  
  297. - Adobe Illustrator and Corel Draw can edit PS files of type AI (a
  298.   simplified version of PS that facilitates editing).
  299.  
  300. - Transverter (from TechPool, 212-291-1922) can convert some general
  301.   PostScript files to AI PostScript. It also does other conversions,
  302.   e.g.  to TIFF.
  303.  
  304. - If you have DPS extensions on your server and a DPS compile time
  305.   environment you can do this quite well with xfig. Check out the
  306.   version in crocus.medicine.rochester.edu:/pub/apps/.
  307.  
  308. - The InterViews tool `idraw' allows manipulation of EPS (Encapsulated
  309.   PostScript) files, and has a `mac-type' interface.
  310.  
  311. - Island Draw 3.0 has an option to import Postscript, and it seems to
  312.   accept arbitrary Postscript.  I have fed it single page Postcript
  313.   files from Illustrator, Corel, Ventura, Designer, Eroff, and
  314.   hand-coded files, and it made Island Draw objects out of them.  The
  315.   file initially opens as one grouped object, but if you ungroup, you
  316.   get editable objects.  I was quite impressed.  I don't doubt there
  317.   are ways to fool the interpreter, but it works for output from
  318.   drawing and publishing packages, which is what I need it for.
  319.  
  320. ------------------------------
  321.  
  322. Subject:   -10- How can I format unformatted manpages?
  323. Date: 07 May 93 00:00:01 EST
  324.  
  325. SGI provides manpages in formatted form, and does not therefore need to
  326. provide us all with the formatting software. Most FTPable software,
  327. however, comes with unformatted manpages.
  328.  
  329. Manpages are most often formatted with Documenter's Workbench (DWB),
  330. which SGI has had to license separately from USL and we have to buy
  331. separately from SGI.  SGI's DWB is based on version 2.1; the current
  332. version from USL is 3.3.
  333.  
  334. Public domain alternatives to DWB include 'groff' and 'awf':
  335.  
  336. 'groff' is by the Free Software Foundation and can be had from any GNU
  337. archive (e.g. prep.ai.mit.edu:/pub/gnu/).  Compilers beware: it must be
  338. compiled with g++ (or another C++ compiler?). However, there are
  339. compiled binaries in cb-iris.stanford.edu:/pub/gnu/.  David Hinds
  340. <dhinds@allegro.stanford.edu>, the man who put them there, gives this
  341. advice for installing groff so that it can format manpages on the fly:
  342.  
  343. Create a script called 'eqn':
  344.  
  345.  > #!/bin/sh
  346.  > if [ ${1:-""} = /usr/pub/eqnchar ] ; then shift ; fi
  347.  > geqn $*
  348.  
  349. and a script called 'neqn':
  350.  
  351.  > #!/bin/sh
  352.  > if [ ${1:-""} = /usr/pub/eqnchar ] ; then shift ; fi
  353.  > geqn -Tascii $*
  354.  
  355. and do:
  356.  
  357.  > ln -s gnroff nroff
  358.  
  359. and edit the end of the gnroff script to be:
  360.  
  361.  > rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
  362.  > exec groff -Wall -mtty-char $T $opts $rest
  363.  
  364. To get PostScript output from 'man -t', you also need to create a
  365. 'psroff' script similar to 'nroff'.  Here are the context diffs:
  366.  
  367. *** /usr/local/bin/nroff        Sat Feb 13 15:51:09 1993
  368. --- /usr/local/bin/psroff       Sat Feb 13 17:45:46 1993
  369. ***************
  370. *** 1,8 ****
  371.   #!/bin/sh
  372. ! # Emulate nroff with groff.
  373.  
  374.   prog="$0"
  375. ! T=-Tascii
  376.   opts=
  377.  
  378.   for i
  379. --- 1,8 ----
  380.   #!/bin/sh
  381. ! # Emulate psroff with groff.
  382.  
  383.   prog="$0"
  384. ! T=-Tps
  385.   opts=
  386.  
  387.   for i
  388. ***************
  389. *** 25,30 ****
  390. --- 25,33 ----
  391.         -Tascii|-Tlatin1)
  392.                 T=$1
  393.                 ;;
  394. +       -t)
  395. +               # ignore -- default is send to stdout
  396. +               ;;
  397.         -T*)
  398.                 # ignore other devices
  399.                 ;;
  400. ***************
  401. *** 49,53 ****
  402.   rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
  403.  
  404.   # This shell script is intended for use with man, so warnings are
  405.   # probably not wanted.  Also load nroff-style character definitions.
  406. ! exec groff -Wall -mtty-char $T $opts $rest
  407. --- 52,56 ----
  408.   rest=`echo ${1+"$@"} | sed -e 's+/usr/lib/tmac+/usr/local/lib/groff/tmac+'`
  409.  
  410.   # This shell script is intended for use with man, so warnings are
  411. ! # probably not wanted.
  412. ! exec groff -Wall $T $opts $rest
  413.  
  414. The binaries on cb-iris.stanford.edu have these changes already made.
  415.  
  416. Henry Spencer's awf ("Amazingly Workable Formatter") is written in
  417. 'awk', which we all have, and does a pretty good job, considering. It
  418. can be FTPed from fresnel.stanford.edu:/pub/4D/.
  419.  
  420. Finally, you might be able to format them on a non-SGI machine which
  421. does have nroff. You might need to specify the generic printer macros
  422. with '-Tlp', i.e. 'nroff -man -Tlp foo.1 > foo'.
  423.  
  424. ------------------------------
  425.  
  426. Subject:   -11- IRIX's version of top(1) doesn't let me renice or kill
  427.                 processes interactively. What to do?
  428. Date: 10 Dec 93 00:00:01 EST
  429.  
  430. Try William LeFebvre's <phil@eecs.nwu.edu> version, which has these
  431. capabilities. FTP it from eecs.nwu.edu:/pub/top/. One port to IRIX is
  432. at ftp.cs.ruu.nl:/pub/SGI/top-3.1.tar.gz.
  433.  
  434. ------------------------------
  435.  
  436. Subject:   -12- BUGS AND PROBLEMS
  437. Date: 10 Dec 93 00:00:01 EST
  438.  
  439. This section discusses bugs and problems with various applications.
  440.  
  441. ------------------------------
  442.  
  443. Subject:   -13- Why isn't Iris Insight working properly?
  444. Date: 10 Dec 93 00:00:01 EST
  445.  
  446. Iris Insight 2.0 (which came on a CD included in the July/August
  447. Pipeline) uses a different format in the .insightrc file in your home
  448. directory. If there is an .insightrc left over from an older version
  449. when you run Insight 2.0, it may emit error messages or not work in
  450. various ways. Just delete the old .insightrc and restart Insight.
  451.  
  452. Greg Ferguson <gferg@hoop.timonium.sgi.com> keeps a list of other
  453. problems with Insight, which can be found at
  454. viz.tamu.edu:/pub/sgi/lists/insight-problems.
  455.  
  456. ------------------------------
  457.  
  458. Subject: ! -14- Why don't the arrow keys work in vi?
  459. Date: 04 May 94 00:00:01 EST
  460.  
  461. Arrow keys send more than one character, and vi can misinterpret them
  462. as multiple single-character commands on slow connections. Increase
  463. vi's patience by putting the command 'set timeout=400' (or a larger or
  464. smaller number to your taste) in the file ~/.exrc or the EXINIT
  465. environment variable.  See also the ex(1) and vi(1) manpages.
  466.  
  467. Or use h, j, k and l. Or zip or Emacs.
  468.  
  469. Incidentally, an article in the March/April 1994 Pipeline discusses a
  470. variety of 'vi' tips and tricks.
  471.  
  472. ------------------------------
  473.  
  474. Subject:   -15- How can I tell application X about my screen size?
  475. Date: 10 Dec 93 00:00:01 EST
  476.  
  477. IRIX does not have 'stty rows n' or 'stty columns n'. Use 'setenv LINES
  478. n' and 'setenv COLUMS n' respectively.
  479.  
  480. ------------------------------
  481.  
  482. Subject:   -16- Why does ksh lock up if one's home directory is NFS-
  483.                 mounted?
  484. Date: 21 Jan 94 00:00:01 EST
  485.  
  486. Sez Dave Olson <olson@sgi.com>:
  487. Since all ksh sessions for the same user write to the same file, ksh
  488. uses locking on the history file.  Locking over NFS is problematic at
  489. best.  There is an environment variable (HISTFILE) that can be set to
  490. specify where the history file lives; I would suggest putting it
  491. somewhere on the local disk.
  492.  
  493. ------------------------------
  494.  
  495. Subject:   -17- Why can't I 'talk' to Suns?
  496. Date: 16 Mar 94 00:00:01 EST
  497.  
  498. SGI, and most Unix vendors, use the 4.3BSD talk protocol, while Sun
  499. still uses the 4.2BSD talk protocol. The fault is Sun's, not SGI's.
  500. Look in thor.ece.uc.edu:/pub/sun-faq/ for Sun-compatible versions of
  501. 'new talk' (ntalk.tar.Z) and 'ytalk', which speaks both old and new
  502. 'talk' (ytalk-3.0.1.tar.gz).
  503.  
  504. You could also run 'ytalk' on your SGI. Get it from
  505. ftp.uu.net:/usenet/comp.sources.unix/volume27/ytalk-3.0/.
  506.  
  507. ------------------------------
  508.  
  509. Subject: + -18- How can I change what the keys on my keyboard do?
  510. Date: 04 May 94 00:00:01 EST
  511.  
  512. Use 'xmodmap'. The manpage describes how to swap control and caps-
  513. lock, which is the most common use. 'xwsh' and 'tcsh' also have key-
  514. binding facilities, described in their manpages; consider these if you
  515. want to change key meanings only in 'xwsh' windows or only in 'tcsh'.
  516.  
  517. ------------------------------
  518.  
  519. Subject:   -19- PORTING
  520. Date: 10 Dec 93 00:00:01 EST
  521.  
  522. This section discusses how to port 'found' software: usually free,
  523. written by someone else and probably not written explicitly for SGIs.
  524.  
  525. ------------------------------
  526.  
  527. Subject:   -20- Why can't I compile application X?
  528. Date: 12 Jan 94 00:00:01 EST
  529.  
  530. Plenty of reasons, but here are some of the most common:
  531.  
  532. - SGI's C compiler is ANSI C by default in IRIX 4.0.x. Use the '-cckr'
  533.   option to compile K&R C. You can do this most easily by setting the
  534.   environment variable SGI_CC to "-cckr" or by editing the
  535.   application's Makefile, often by adding "-cckr" to the CFLAGS
  536.   variable.
  537.  
  538. - A related problem is that Makefiles generated by 'imake' most often
  539.   use 'cc -cckr -prototypes'; missing or incorrect prototypes usually
  540.   just generate pages of warnings but may cause an unrecoverable error.
  541.   This can often be worked around by removing "-prototypes" from the
  542.   line where it appears in the Makefile (not the Imakefile).
  543.  
  544. - You need the libPW.a library, which contains the regcmp and regex
  545.   functions.  Add '-lPW' to your linking command.
  546.  
  547. - You're linking X libraries, which have complex interdependencies, in
  548.   the wrong order. Mark Kilgard <mjk@hoot.asd.sgi.com> provided this
  549.   handy chart:
  550.  
  551.  
  552.   libXm--libXirisw
  553.                   \
  554.                    libXt--libXmu--libgl--libXi--libXext--libX11
  555.                   /
  556.             libXaw
  557.  
  558.   Libraries should be listed in the same order on the cc or ld command
  559.   line, left to right, as they appear above. If you don't use routines
  560.   from a library, of course, you don't need it.
  561.  
  562. - Some header files were in both the dev.hdr.lib subsystem (which is
  563.   part of IDO) and eoe1.sw.unix (which is part of basic IRIX) in IRIX
  564.   4.0.5, but are not in dev.hdr.lib in IDO 4.1 and 4.1.1. If one
  565.   removes an older IDO then installs IDO 4.1(.1), these headers will
  566.   disappear.  The solution is to reinstall eoe1.sw.unix. Affected
  567.   headers are all in /usr/include/sys, and include domain.h, fddi.h,
  568.   if_imf.h, if_ipg.h, if_mf.h, if_sl.h, llc.h, mbuf.h, protosw.h,
  569.   smt.h, socket.h, socketvar.h, tcp-param.h, uio.h, un.h, and unpcb.h.
  570.  
  571. - There may be dependency lines in a Makefile which begin with spaces.
  572.   Some 'make's accept spaces; SGI's requires tabs.
  573.  
  574. - You may be running into one of the many popular bugs in IDO 4.1. See
  575.   "COMPILERS AND PROGRAMMING".
  576.  
  577. ------------------------------
  578.  
  579. Subject:   -21- Why doesn't application X understand NIS (Yellow Pages)?
  580. Date: 19 Dec 93 00:00:01 EST
  581.  
  582. If you run NIS (aka Yellow Pages), you need to link programs which
  583. access files served by NIS with -lsun. The functions in libc.a which
  584. deal with these files are not NIS-aware; the NIS versions are in
  585. libsun.a. Using libsun.a usually means adding '-lsun' to the variable
  586. LIBS or LDFLAGS in one's Makefile. If '-lc' or '-lc_s' (libc_s.a is
  587. the shared version of libc.a) is given explicitly, '-lsun' must precede
  588. it.
  589.  
  590. This is only true for IRIX 4.0.x; IRIX 5.x's libc.a is NIS-aware.
  591.  
  592. ------------------------------
  593.  
  594. Subject:   -22- Where's 'ranlib'?
  595. Date: 16 Sep 93 00:00:01 EST
  596.  
  597. IRIX doesn't need it. Read the description of the 's' option in the
  598. 'ar' manpage. When the Makefile for a program you're porting wants
  599. ranlib, substitute 'true' or put a little shell script in your PATH to
  600. fake it.
  601.  
  602. ------------------------------
  603.  
  604. Subject:   -23- How can I make the 'install' program work like BSD
  605.                 'install'?
  606. Date: 16 Jun 93 00:00:01 EST
  607.  
  608. The BSD and System V versions of the 'install' command are
  609. incompatible; the BSD version is most often used by Makefiles. IRIX
  610. provides both the System V version (/etc/install) and the BSD version
  611. (/usr/bin/X11/bsdinst.sh). SGI's 'imake' defines INSTALL as
  612. /usr/bin/X11/bsdinst.sh, and the Install* rules use that definition, so
  613. Imakefile-generated Makefiles will use the BSD version.
  614.  
  615. Michael Joosten <joost@ori.cadlab.de> points out that you can also use
  616. GNU install (available from any GNU archive, e.g.
  617. prep.ai.mit.edu:/pub/gnu/), which emulates the BSD version.  Unlike
  618. /usr/bin/X11/bsdinst.sh, it has a manpage.  It also may be better
  619. debugged; SGI's version reportedly mishandles '-o' and installs
  620. multiple files into a single directory.
  621.  
  622. ------------------------------
  623.  
  624. Subject:   -24- Why does GNU Emacs not compile, or compile but not run?
  625. Date: 20 Jan 94 00:00:01 EST
  626.  
  627. You probably have an old version.
  628.  
  629. Emacs 18.59 is the last release of Emacs version 18. It builds and runs
  630. correctly under IRIX 4.0.x. Some earlier versions failed to compile
  631. (because cc now needs -cckr for K&R C compatibility) or failed to run
  632. when stripped (because of object file format changes). For the latter
  633. reasion, the file unexmips.c in some versions of Epoch and Lucid Emacs
  634. should be replaced with the same-named file from the GNU Emacs 18.59
  635. distribution.
  636.  
  637. Karsten Kuenne <kuenne@desy.de> has patched Emacs 18.59 to work with
  638. IRIX 5.0's new object file format. The patches are at
  639. ftp.desy.de:/pub/gnu/emacs/emacs-irix5.0-patches.
  640.  
  641. Emacs 19.22 is the most recent release of Emacs version 19 at this
  642. writing; it builds and runs correctly under IRIX 4.0.x and 5.x with
  643. recent compilers (IDO 4.1.1 or newer). Be sure to read about Iris
  644. quirks in etc/MACHINES. You may need to say 'configure
  645. mips-sgi-irix5.1' instead of 'configure mips-sgi-irix5' to work around
  646. a small 'configure' bug. If you want to use dbx on Emacs 19.22, you
  647. need viz.tamu.edu:/pub/sgi/software/emacs/unexelfsgi.c.patch.
  648.  
  649. See also "Where can I get software already compiled for SGIs?" above.
  650.  
  651. ------------------------------
  652.  
  653. Subject:   -25- What do I need to do to build gcc/g++?
  654. Date: 12 Jan 94 00:00:01 EST
  655.  
  656. Recent versions of gcc build reliably on IRIX 4.0.x and 5.x without
  657. difficulty.  Just read the INSTALL document and follow the directions.
  658. A few hints:
  659.  
  660. - You need the headers and runtime libraries from SGI's extra-cost
  661.   development option both to compile and use gcc. (glibc does not yet
  662.   work on SGIs.) Of course if you buy the development option you'll get
  663.   SGI's compiler anyway; this is comp.sys.sgi.*'s most popular
  664.   Catch-22.
  665.  
  666. - Don't forget to install the dev.cmplrs_hdr.internal subsystem, which
  667.   contains needed headers and is not installed by default.
  668.  
  669. - You'll need up to 80Mb of free disk space. You can manage with as
  670.   little as 50Mb by compiling without "-g", stripping binaries and
  671.   pruning after each build stage.
  672.  
  673. _ If you are using IDO 4.1, use the 'mips-sgi-irix4loser'
  674.   configuration, which disables optimization to avoid an assembler bug,
  675.   or use the 'noasmopt' flag to gcc. This is not necessary with IDO
  676.   4.1.1.
  677.  
  678. - If you are using IDO 5.1, don't use GNU's binutils ('ar' and 'ld') to
  679.   build gcc. Use the IRIX versions.
  680.  
  681. - gcc's '-g' option (include debugging info) does not work on IRIX 5.x.
  682.   This is not a bug, but an absence of support. '-g' will work when
  683.   someone ports GNU's 'gas' to IRIX 5.x or explicitly writes ELF
  684.   support into gcc.
  685.  
  686. See also "Where can I get software already compiled for SGIs?" above.
  687.  
  688. ------------------------------
  689.  
  690. Subject:   -26- COMPILERS AND PROGRAMMING
  691. Date: 10 Dec 93 00:00:01 EST
  692.  
  693. This section discusses compilers and programming issues.  Check the
  694. graphics FAQ for graphics programming issues, and the Performer FAQ for
  695. Performer issues.
  696.  
  697. ------------------------------
  698.  
  699. Subject:   -27- What are the correct versions of the Irix Development
  700.                 Option (IDO) and Fortran for current versions of IRIX?
  701. Date: 15 Feb 94 00:00:01 EST
  702.  
  703. If you're using IRIX 4.0.x, you should be using IDO 4.1.1.  It includes
  704. C 3.10.1 and the 3.12 back-end (the part of the compiler which actually
  705. produces the executable; 3.12 is the number you see when you use the
  706. 'file' command on an executable). IDO 4.1 (C 3.10 and the 3.10
  707. back-end) was buggy; upgrade to 4.1.1 ASAP. IDO 4.0.1 (with the 2.40
  708. back-end) was the last stable release before IDO 4.1.x and is still
  709. acceptable. IRIX 5.1 requires IDO 5.1.
  710.  
  711. Each version of IDO has a corresponding version of Fortran, and they
  712. MUST be used together. IDO 4.1.1 needs Fortran 3.5.1 and IDO 5.1 needs
  713. Fortran 4.0.
  714.  
  715. ------------------------------
  716.  
  717. Subject:   -28- Where's edge in IRIX 5.x? What can I use instead?
  718. Date: 02 Feb 94 00:00:01 EST
  719.  
  720. SGI does not include edge with IRIX 5.x. When asked for substitutes,
  721. SGI will direct you to their CASEVision debugger, which costs extra.
  722. An oft-mentioned free graphical debugger is 'xdbx'; it can be FTPed
  723. from ftp.x.org and a patch to make it work on SGIs is at
  724. viz.tamu.edu:/pub/sgi/software/xdbx/xdbx.sgi.patch.
  725.  
  726. ------------------------------
  727.  
  728. Subject:   -29- Can I use dynamic shared objects in IRIX?
  729. Date: 07 May 93 00:00:01 EST
  730.  
  731. IRIX 5.x supports SVR4-style dynamic shared objects. IRIX 4.0.x does
  732. not, but Jack Jansen <jack@cwi.nl> has written a package to do it
  733. anyway. Get the file ftp.cwi.nl:/pub/dl-1.3.tar.Z by anonymous FTP.
  734.  
  735. ------------------------------
  736.  
  737. Subject: ! -30- How can I tell which shared objects my executable uses?
  738. Date: 25 Apr 94 00:00:01 EST
  739.  
  740. Use 'odump -Lv' for COFF format executables (under IRIX 4.0.x, or 5.x using
  741. the irix4 compatibility stuff) and 'elfdump -Dl' for ELF format executables
  742. (IRIX 5.x only). Both are in the dev.cmplrs_sw.util subsystem.
  743.  
  744. ------------------------------
  745.  
  746. Subject:   -31- How can I generate IRIX 4.0.x-compatible executables
  747.                 under IRIX 5.x?
  748. Date: 10 Dec 93 00:00:01 EST
  749.  
  750. Strictly speaking, you can't. Many things changed in IRIX 5.x. You can,
  751. however generate executables in COFF (IRIX 4.0.x) format instead of ELF
  752. (IRIX 5.x) format, and these will often work on IRIX 4.0.x if they
  753. don't use complex things like multiprocessing. The manual and release
  754. notes describe how, and here's a summary:
  755.  
  756. 1) Make sure you've installed all of the appropriate irix4
  757.    compatibility subsystems. These include irix4_eoe, irix4_dev,
  758.    irix4_c and others for Motif, Inventor, etc.
  759.  
  760. 2) setenv SGI_IRIX4 1
  761.  
  762. 3) If your source uses explicit paths to headers, libraries, etc.,
  763.    change them to point to the irix4 versions.
  764.  
  765. 4) Use cc or make or whatever as you normally would.
  766.  
  767. ------------------------------
  768.  
  769. Subject:   -32- How can I convert IRIX 4.0.x executables to IRIX 5.x?
  770. Date: 17 Jan 94 00:00:01 EST
  771.  
  772. Sez Jay McCauley <mccauley@sgi.com>:
  773. IRIX does not and cannot have a coff2elf (actually, it's 'cof2elf')
  774. converter.  The COFF (actually, ECOFF) to ELF transition was also the
  775. transition to the use of Expanded Fundamental Types (EFT), an
  776. SVR4-ism.  EFT enlarges a number of basic data types, finally casting
  777. off the last vestages of the PDP-11.  So, structures built in an EFT
  778. world would have their members at different offsets than they would in
  779. a pre-EFT (e.g. IRIX 4.x) world. The operating system uses the fact
  780. that an executable is in ELF to trigger the use of EFT-based strucures
  781. for input and output.  So, even if you had a program like coff2elf,
  782. the resulting transformed executable would not operate correctly for
  783. almost any interesting case.  Trivial programs that don't have any
  784. system calls which pass in structures or get structures back from the
  785. OS could theoretically work, but these fall into the "uninteresting"
  786. class.
  787.  
  788. ------------------------------
  789.  
  790. Subject:   -33- How can I make IRIX malloc return null on failure?
  791. Date: 23 Jan 94 00:00:01 EST
  792.  
  793. SGI's malloc(), by default, does not return NULL if there's not enough
  794. virtual memory around to allocate the requested space;  instead the
  795. program is killed if and when it touches an unavailable page. To make
  796. malloc() behave more conventionally -- to return NULL if the space is
  797. not available -- set the kernel variable availsmem_accounting (in
  798. /usr/sysgen/master.d/kernel, or via 'systune' in IRIX 5.x) to 1 and
  799. rebuild your kernel.
  800.  
  801. ------------------------------
  802.  
  803. Subject:   -34- Where's CHILD_MAX?
  804. Date: 21 Jan 94 00:00:01 EST
  805.  
  806. /usr/include/limits.h has a bug in all versions of IRIX 4.0.5. The
  807. definition of ARG_MAX on line 92 is missing a closing comment, so the
  808. definition of CHILD_MAX on line 93 is ignored. Line 92
  809.  
  810. #define    ARG_MAX        5120         /* max length of arguments to exec 
  811.  
  812. should look like this:
  813.  
  814. #define    ARG_MAX        5120         /* max length of arguments to exec */
  815.  
  816. ------------------------------
  817.  
  818. Subject:   -35- What prototypes are missing in IRIX 4.0.x and 5.x?
  819. Date: 03 Apr 94 00:00:01 EST
  820.  
  821. Kevin Russo <russo@rudedog.nrl.navy.mil> has compiled a list, which
  822. you can FTP from
  823. viz.tamu.edu:/pub/sgi/software/prototypes/missing-protos.shar.
  824.  
  825. ------------------------------
  826.  
  827. Subject:   -36- Why are some static libraries missing in IRIX 5.x?
  828. Date: 05 Feb 94 00:00:01 EST
  829.  
  830. IRIX 5.x does not have static (non-shared) versions of some libraries,
  831. notably libX11.a. This is only a problem if one needs to name one
  832. explicitly in a linking statement; just use the shared version (in this
  833. case, libX11.so.1).
  834.  
  835. But *why* are they missing? 1) The shared versions (but not the static
  836. versions) are specified in the MIPS ABI, with which IRIX 5.x complies.
  837. 2) SGI can tune system-dependent aspects of the libraries without
  838. losing binary compatibility between different SGI machines and with
  839. other MIPS ABI-compliant platforms. 2) The library interfaces are
  840. stable, so there is no need to link them statically. 3) It forces us
  841. all to use the shared versions with the attendant benefits: less disk
  842. and memory usage and better portability.
  843.  
  844. ------------------------------
  845.  
  846. Subject:   -37- Where are the audio, CD and DAT libraries in IRIX 5.x?
  847. Date: 05 Mar 94 00:00:01 EST
  848.  
  849. In IRIX 5.x, they (and the associated headers, sample code, etc.) have
  850. moved to the extra-cost Digital Media Development option. Sorry.
  851.  
  852. ------------------------------
  853.  
  854. End of sgi/faq/apps Digest
  855. ******************************
  856. -- 
  857. The SGI FAQ group                                sgi-faq@viz.tamu.edu
  858. Finger us for info on the SGI FAQs, or look in viz.tamu.edu:/pub/sgi.
  859.  
  860.